import Simplification.PreSimplification;
import Simplification.Simplification;
import Syntaxe.Fraction;
import Syntaxe.Matrice;
import Syntaxe.Simplexe;
import Syntaxe.Vecteur;

public class test2 {

	public static void main(String[] args) {
		//page69 ChenBaolin
		Fraction[][] matrice= new Fraction[5][3];
		matrice[0][0] = new Fraction(1);
		matrice[0][1] = new Fraction(1);
		matrice[0][2] = new Fraction(2);
		
		matrice[1][0] = new Fraction(1);
		matrice[1][1] = new Fraction(-1);
		matrice[1][2] = new Fraction(1);
		
		matrice[2][0] = new Fraction(-1);
		matrice[2][1] = new Fraction(0);
		matrice[2][2] = new Fraction(-3);
		
		matrice[3][0] = new Fraction(1);
		matrice[3][1] = new Fraction(0);
		matrice[3][2] = new Fraction(0);
		
		matrice[4][0] = new Fraction(0);
		matrice[4][1] = new Fraction(1);
		matrice[4][2] = new Fraction(0);
		
		Matrice m = new Matrice(matrice);
		
		Fraction[] f= new Fraction[3];
		f[0]=new Fraction(-2);
		f[1]=new Fraction(1);
		f[2]=new Fraction(0);
		
		
		//m.AfficheMatrice();
		
		PreSimplification pre=new PreSimplification(m);
		pre.standard().AfficheMatrice();
		
		Simplification.minimise(pre.standard(),pre.foncExtend(f));
		
				
	}

}

